all:
	cp chrome.manifest chrome.manifest.bak
	sed 's/content hackernerd content\//content hackernerd jar:chrome\/hackernerd.jar!\/content\//' chrome.manifest.bak > chrome.manifest
	mkdir -p chrome
	zip -r chrome/hackernerd.jar content
	zip -r hackernerd.xpi install.rdf chrome.manifest chrome
	mv chrome.manifest.bak chrome.manifest

install:
	cp hackernerd.jianzhou.zh@gmail.com /home/jianzhou/.mozilla/firefox/dbme8m09.ext-dev/extensions/

uninstall:
	rm -f /home/jianzhou/.mozilla/firefox/dbme8m09.ext-dev/extensions/hackernerd.jianzhou.zh@gmail.com

update:
	touch /home/jianzhou/.mozilla/firefox/dbme8m09.ext-dev/extensions/hackernerd.jianzhou.zh@gmail.com
	echo "Pls restart firefore."


clean:
	rm -rf hackernerd.xpi chrome
